package main.methodfactory;

/**
 * @author: kejl
 * @create: 2020-07-12 23:46
 */
public class Client {
    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        //这样就符合了 开闭原则 但是增加了复杂度
        DataBaseFactory dataBaseFactory =  (DataBaseFactory)Class.forName("main.methodfactory.DataBaseFactory").newInstance();
        AbstractLogger factory = dataBaseFactory.getLogger();
        factory.wrirteLogger();
    }
}
